package com.zeroxml.cms.web.listener;

import com.zeroxml.cms.util.ZeroUtils;
import com.zeroxml.cms.bo.SiteConfig;
import org.springframework.web.context.support.WebApplicationContextUtils;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;
import javax.servlet.ServletContext;

/**
 * User: cjp
 * Date: 2007-9-10
 * Time: 21:06:57
 */
public class LoaderListener implements ServletContextListener {
    public void contextInitialized(ServletContextEvent event) {
        ServletContext application=event.getServletContext();
        ZeroUtils.context= WebApplicationContextUtils.getWebApplicationContext(application);
    }

    public void contextDestroyed(ServletContextEvent event) {
    }
}
